package com.gateway.demo.service.hystrix;

import com.gateway.demo.config.RtnMsg;
import com.gateway.demo.service.GateAuthService;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 类描述：当应用调用超时或者服务没有启动的时候的处理方式
 * @author linzf
 */
@Component
public class GateAuthServiceHystrixImpl implements GateAuthService {

    @Override
    public RtnMsg authUrl(Map<String, String> auth) {
        return new RtnMsg(400,"调用超时",null);
    }
}
